package com.zj.mes.login.service;

import com.zj.mes.common.entity.*;
import com.zj.mes.login.entity.UpdatePassword;
import com.zj.mes.login.entity.User;

import java.util.List;
import java.util.Map;

/**
 * @Author: 王晓楠
 * @Date: 2019/5/13 9:40
 * @Version 1.0
 */
public interface ILoginService {

    User findByName(String name);

    User addUser(User user);

    Role addRole(Role role);

    String getLogin(String shiroUserName);

    int updatePw(UpdatePassword pw);

    ResultsModel forgetPw(Map map);

    int update(Map map);


    List<Map> getPowerByUsername(int id);

    List<Map> power();

    int submitPower(List list, int roleId);

    String getEmployeeName();
}
